package top.lionkliu.mapper;

import org.apache.ibatis.annotations.Param;
import top.lionkliu.entity.Note;

import java.util.List;
import java.util.Map;

public interface NoteMapper {
    List<Note> selectAll();

    void insert(@Param("note") Note note);

    void update(@Param("note") Note note);

    void delete(@Param("id") int id);

    Note selectById(int id);

    List<Note> selectByLike(@Param("key") String key, @Param("value") String value);

    List<Note> selectByPage(Map<String, Object> map);

    int getTotal();

}